﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Localization;
using SinBiota.Model.Entities.CustomAttributes;
using Sinbiota.Web.Controllers;

namespace Sinbiota.Web.Models
{
    public class StatisticsPageModel
    {
        public StatisticsTable Statistics { get; set; }
        public OccurrenceStatisticsType OccurrenceStatisticsType { get; set; }
        public SpeciesStatisticsType SpeciesStatisticsType { get; set; }

        public StatisticsPageModel(int projects, int users, int authors, int taxonomicGroups, int totalOccurrences, int totalSpecies)
        {
            Statistics = new StatisticsTable(projects, users, authors, taxonomicGroups, totalOccurrences, totalSpecies);
        }

        public class StatisticsTable
        {
            public StatisticsTable(int projects, int users, int authors, int taxonomicGroups, int totalOccurrences, int totalSpecies)
            {
                Projects = projects;
                Users = users;
                Authors = authors;
                TaxonomicGroups = taxonomicGroups;
                TotalOccurrences = totalOccurrences;
                TotalSpecies = totalSpecies;
            }

            [LocalizedName("Projects", NameResourceType = typeof(Strings))]
            public int Projects { get; set; }

            [LocalizedName("Users", NameResourceType = typeof(Strings))]
            public int Users { get; set; }

            [LocalizedName("Authors", NameResourceType = typeof(Strings))]
            public int Authors { get; set; }

            [LocalizedName("TaxonomicGroups", NameResourceType = typeof(Strings))]
            public int TaxonomicGroups { get; set; }

            [LocalizedName("TotalOccurrences", NameResourceType = typeof(Strings))]
            public int TotalOccurrences { get; set; }

            [LocalizedName("TotalSpecies", NameResourceType = typeof(Strings))]
            public int TotalSpecies { get; set; }
            
        }
    }

}